<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>修改头像</title>
    <link rel="stylesheet" type="text/css" href="../../static/css/vipcenter.css">
    <script src="../../static/js/jquery-1.8.3.min.js"></script>
    <script src="../../static/js/city.js/cityJson.js"></script>
    <script src="../../static/js/city.js/citySet.js"></script>
    <script src="../../static/js/city.js/Popt.js"></script>
    <script src="../../static/js/jquery.form.min.js"></script>
    <script src="../../static/js/user_pic_info.js"></script>
</head>

<body>
<!--个人中心首页 -->
<div class="thetoubu">
    <!--头部-->
    <div class="thetoubu1">
        <b>
            {% if data.user_info.avatar_url %}
                <img src="{{ data.user_info.avatar_url }}"/>
            {% else %}
                <img src="../../static/favicon.ico"/>
            {% endif %}
        </b>
        <em>{{ data.user_info.nick_name }}</em>
        <em>欢迎来到会员中心</em>
        <a href="/user/goods_addr">地址管理</a>
        <a href="/user/base_user">修改资料</a>
        <h5>账户安全</h5>
        <strong>低</strong>
        <span>
        	<p style=" width:27%"></p>
        </span>
        <a href="#">安全等级提升</a>
        {% if data.user_info.mobile_status==1 %}
            <em style=" padding-right:2px">手机</em>
            <a href="#" style=" padding-left:2px; float:left; display:block; color:#f00" title="点击绑定">已绑定</a>
        {% else %}
            <em style=" padding-right:2px">手机</em>
            <a href="/user/binding" style=" padding-left:2px; float:left; display:block; color:#f00"
               title="点击绑定">未绑定</a>
        {% endif %}
        <div>
            <a href="/">返回商城</a>
        </div>

    </div>
    <!--详细列表-->
    <div class="xiangxilbnm">
        <!--left-->
        <div class="liefyu">
            <h2>交易管理</h2>
            <div class="conb">
                <a href="/user/my_shopcar">我的购物车</a>
                <a href="#">实物交易订单</a>
                <a href="#">虚拟兑换订单</a>
                <a href="/user/collection">我的收藏</a>
                <a href="#">交易评价/晒单</a>
                <a href="#">账户余额</a>
                <a href="#">我的积分</a>
                <a href="#">我的代金卷</a>
            </div>
            <h2>客户服务</h2>
            <div class="conb">
                <a href="#">退款及退货</a>
                <a href="#">交易投诉</a>
                <a href="#">商品咨询</a>
                <a href="#">违规举报</a>
                <a href="#">平台客服</a>
                <a href="#">商家入驻</a>
            </div>
            <h2>资料管理</h2>
            <div class="conb">
                <a href="/user/base_user">账户信息</a>
                <a href="/account">账户安全</a>
                <a href="/user/goods_addr">收货地址</a>
                <a href="/user/pic_info">我的头像</a>
                <a href="/passport/new_password">修改密码</a>
                <a href="/user/zfmm">支付密码</a>
                <a href="/user/binding">手机绑定</a>
                <a href="/user/e_mail">邮箱绑定</a>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {//第一步都得写这个
                $(".liefyu h2").click(function () {//获取title，并且让他执行下面的函数
                    $(this)/*点哪个就是哪个*/.next(".conb")/*哪个标题下面的con*/.slideToggle()/*打开/折叠*/.siblings/*锁定同级元素*/(".con").slideUp()/*同级元素折叠起来*/
                })
            })
        </script>

        <form class="pic_info">
            <h3>头像设置</h3>
            <div class="form-group">
                <label class="label01">当前图像：</label>
                <img style="width: 150px;height: 150px;:" src="{% if data.user_info.avatar_url %}
                   {{ data.user_info.avatar_url }}
                   {% else %}
                        ../../static/news/images/person01.png
                    {% endif %}"
                     alt="用户图片" class="now_user_pic">
            </div>
            <div class="form-group">
                <label>上传图像：</label>
                <input type="file" name="avatar" class="input_file">
            </div>

            <div class="form-group">
                <input type="submit" value="保 存" class="input_sub">
            </div>
        </form>
    </div>
    <!--详细列表结束-->
</div>
<!--个人中心结束-->

</body>
</html>        
                
                       
             
            
